﻿using IOA.MES.DataAccess.Enum;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace IOA.MES.PdaApi.Models.Response.Downgrade
{
    public class QueryResponse
    {
        /// <summary>
        /// 降级列表
        /// </summary>
        public List<Downgrade> Downgrades { get; set; } = new List<Downgrade>();
    }

    public class Downgrade
    {
        /// <summary>
        /// 降级ID
        /// </summary>
        public int DowngradeId { get; set; }

        ///<Summary>
        /// 降级说明
        ///</Summary>
        public DowngradeType DowngradeType { get; set; }

        ///<Summary>
        /// 订单号
        ///</Summary>
        public string OrderNo { get; set; }

        ///<Summary>
        /// 工单号
        ///</Summary>
        public string WorkOrderNo { get; set; }

        ///<Summary>
        /// 车间代码
        ///</Summary>
        public string WorkshopCode { get; set; }

        ///<Summary>
        /// 车间名称
        ///</Summary>
        public string WorkshopName { get; set; }

        ///<Summary>
        /// 组件条码
        ///</Summary>
        public string BarCode { get; set; }

        ///<Summary>
        /// 组件料号
        ///</Summary>
        public string ProductCode { get; set; }

        ///<Summary>
        /// 组件名称
        ///</Summary>
        public string ProductName { get; set; }

        ///<Summary>
        /// 当前站点名称
        ///</Summary>
        public string CurSiteName { get; set; }

        ///<Summary>
        /// 锁定站点名称
        ///</Summary>
        public string LockSiteName { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public string CNCreateBy { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        ///<Summary>
        /// 降级说明
        ///</Summary>
        public string DowngradeDesc { get; set; }

        ///<Summary>
        /// 已复判
        ///</Summary>
        public bool Reviewed { get; set; }

        ///<Summary>
        /// 复判人
        ///</Summary>
        public string CNReviewedBy { get; set; }

        ///<Summary>
        /// 复判时间
        ///</Summary>
        public DateTime? ReviewTime { get; set; }

        ///<Summary>
        /// 复判结果
        ///</Summary>
        public DataAccess.Enum.ReviewResult? ReviewResult { get; set; }

        ///<Summary>
        /// 复判结果
        ///</Summary>
        public string CNReviewResult { get; set; }

        ///<Summary>
        /// 复判说明
        ///</Summary>
        public string ReviewDesc { get; set; }
    }
}
